home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / ClipMirror / readme.txt < prev    next >
Text File  |  2001-10-10  |  2KB  |  51 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: ClipMirror Direct3D Sample
  3. // 
  4. // Copyright (c) 1998-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The ClipMirror sample demonstrates the use of custom-defined clip planes.
  11.    A 3D scene is rendered normally, and then again in a 2nd pass as if reflected
  12.    in a planar mirror. Clip planes are used to clip the reflected scene to the
  13.    edges of the mirror.
  14.  
  15.  
  16. Path
  17. ====
  18.    Source:     DXSDK\Samples\Multimedia\D3D\ClipMirror
  19.    Executable: DXSDK\Samples\Multimedia\D3D\Bin
  20.  
  21.  
  22. User's Guide
  23. ============
  24.    The following keys are implemented. The dropdown menus can be used for the
  25.    same controls.
  26.       <Enter>     Starts and stops the scene
  27.       <Space>     Advances the scene by a small increment
  28.       <F1>        Shows help or available commands.
  29.       <F2>        Prompts user to select a new rendering device or display mode
  30.       <Alt+Enter> Toggles between fullscreen and windowed modes
  31.       <Esc>       Exits the app.
  32.  
  33.    The mouse is also used in this sample to control the viewing position.
  34.  
  35.  
  36. Programming Notes
  37. =================
  38.    The main feature of this sample is the use of clip planes. The rectangular 
  39.    mirror has four edges, so four clip planes are used. Each plane is defined 
  40.    by the eye point and two vertices of one edge of the mirror. With the clip
  41.    planes in place, the view matrix is reflected in the mirror's plance, and 
  42.    then the scene geometry (the teapot object) can be rendered as normal. 
  43.    Afterwards, a semi-transparent rectangle is drawn to represent the mirror
  44.    itself.
  45.  
  46.    This sample makes use of common DirectX code (consisting of helper functions,
  47.    etc.) that is shared with other samples on the DirectX SDK. All common
  48.    headers and source code can be found in the following directory:
  49.       DXSDK\Samples\Multimedia\Common
  50.  
  51.